<?php if (!defined('THINK_PATH')) exit();?><link rel="stylesheet" type="text/css" href="../Public/js/plugin/jquery-ui/theme/Aristo.min.css" />
<script type="text/javascript" src="../Public/js/plugin/jquery-ui/jquery-ui.min.js"></script>

<script type="text/javascript" src="../Public/js/module/Index/header.js"></script>

<div id="header-content">
    <div id="header-top" class="clearfix">
        <div id="logo">
            <a href="/">
            </a>
        </div>
        <div id="search">
            <input id="txt_index_search" type="text" class="text-input" name="keyword" value='<?php if(empty($searchName)): ?>白泡泡<?php else: ?><?php echo ($searchName); ?><?php endif; ?>' />
            <input id="btn_index_search_submit" type="submit" class="btn-search-submit" value="">
        </div>
        <div class="clearfix" id="account">
            <?php if(empty($_SESSION['WEB_USER'])): ?><a id="a_link_register" class="lnk-register" href="__APP__/User/register.shtml">注册</a>
                <div class="fleft lnks-login">
                    <a id="a_weibo_sina" class="links-login-cz" href="javascript:;"></a>
                    <a id="a_weibo_tencent" class="links-login-cz" href="javascript:;"></a>
                    <a href="__APP__/User/login.shtml" class="links-login-cz" href="javascript:;"></a>
                </div>
                <input type="text" value="/accounts/register/" name="next" class="hidden" id="login-next"/>
                <input type="text" class="hidden" id="child-type"/>

                <?php else: ?>

                <a href="__APP__/User/profile.shtml" class="lnk-unlogin clearfix"><div class="jiong fleft"></div><div class="fleft"><?php echo ($_SESSION['WEB_USER']['nick_name']); ?></div></a>

                <span style="padding:0 10px 0; background-position:center;" class="lnk-unlogin"></span>
                <a id="a_index_header_logout" href="__APP__/User/logout.shtml" class="lnk-unlogin lnk-logout">登出</a>

                <input type="text" value="" name="next" class="hidden" id="login-next"/>
                <input type="text" class="hidden" id="child-type"/><?php endif; ?>

            <span id="span_weibo_show"></span>


        </div>
    </div>
    <div id="header-nav" class="clearfix">
        <div id="nav" class="nav">
            <ul class="clearfix">
                <li id="li_head_index" class=" selected nav-index clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a  href="__APP__"><span class="index-menu-bold">首页</span></a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                <!--
                <li id="recommended-tab" class="category clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a href="/recommended/"><span>猜你喜欢</span><em></em></a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                -->
                <li id="li_head_limit_free" class="category clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a id="nav-price-drop" class="a_header_link" href="__APP__/Index/appTypeList/type/limitFree.shtml">限时免费</a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                <li id="li_head_evaluation" class="category clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a class="a_header_link" href="__APP__/Index/appTypeList/type/originalEvaluation.shtml">原创评测</a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                <li id="li_head_subject" class="category clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a class="a_header_link" href="__APP__/Index/subject.shtml">专题</a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                <li id="li_head_top" class="category clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a href="__APP__/Index/top.shtml">排行榜</a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                <!--<li class="category-child clearfix" style="margin-right: 20px;">
                    <div class="nav-selected-left">
                    </div>
                    <a href="/top-list/">热门列表</a>
                    <div class="nav-selected-right">
                    </div>
                </li>-->
                <li id="li_head_new" class=" clearfix">
                    <div class="nav-selected-left">
                    </div>
                    <a id="a_index_header_news" href="__APP__/Index/newCenter.shtml">新闻</a>
                    <div class="nav-selected-right">
                    </div>
                </li>
                <?php if(!empty($searchName)): ?><li id="li_head_search" class=" clearfix">
                        <div class="nav-selected-left">
                        </div>
                        <a href="javascript:void(0);">搜索</a>
                        <div class="nav-selected-right">
                        </div>
                    </li><?php endif; ?>
            </ul>
        </div>

        <?php if(!empty($_SESSION['WEB_USER'])): ?><div class="wish-field" id="wish-field">
                <a class="clearfix" href="__APP__/User/mycomment.shtml">
                    <span class="fleft">我的评论</span>
                </a>
                <div class="wish-num" id="wish-num">

                </div>

            </div><?php endif; ?>
    </div>

</div>
<style type="text/css">
    .innerConDiv{width:920px;margin-left:250px;display:inline;float:left;font-size:14px;}
    .innerConDiv span{line-height:30px;float:left;}
    .innerConDiv img{margin-top: 5px;float:left;}
</style>
<div style="width:100%;float:left;background:url(../Public/images/scroll-bg.jpg);">
    <div class="innerConDiv"><?php echo ($demagogic["value"]); ?></div>
    <div class="fright" style="width:140px;">&nbsp;</div>
    <div class="fright">
<!--        <IFRAME width=132 height=35 scrolling=no id=previewmc src="http://follow.v.t.qq.com/index.php?c=follow&amp;a=quick&amp;name=baipaopao2011&amp;style=2&amp;t=1324885157906" frameBorder=0 allowTransparency></IFRAME>-->
        <iframe width="260" height="30" scrolling="no" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=260&height=64&uid=2534673152&style=4&btn=red&dpc=1"></iframe>
    </div>
</div>
<div class="clear"></div>
<form id="frm_hidden_app_header" method="post"></form>